//
//  MTStrengthCollectionViewCell.swift
//  MT
//
//  Created by ooops on 2020/5/14.
//  Copyright © 2020 张强. All rights reserved.
//

import UIKit
import MTCategory

class MTStrengthCollectionViewCell: UICollectionViewCell {
    class func reuseIdentity() -> String {
        return "MTStrengthCollectionViewCellId"
    }
    
    var model: MTRankingInfoModel? {
        didSet {
            contentV.model = model
        }
    }
    
    var discoverType: MTDiscoverTableFooterViewType? {
        didSet {
            contentV.discoverType = discoverType
        }
    }
    
    var disableGesture: Bool = false {
        didSet {
            contentV.disableGesture = disableGesture
        }
    }
    
    var rateNumber: Int? {
        didSet {
            contentV.rateNumber = rateNumber
        }
    }
    
    lazy var contentV: MTDiscoverRateHeaderView = {
        let imageV = MTDiscoverRateHeaderView()
        return imageV
    }()
    
    override init(frame: CGRect) {
        super.init(frame: frame)
        setupUI()
        makeConstraint()
    }
    
    private func setupUI() {
        contentView.addSubview(contentV)
    }
    
    private func makeConstraint() {
        contentV.snp.makeConstraints { (make) in
            make.edges.equalToSuperview()
        }
    }
    
    required init?(coder: NSCoder) {
        super.init(coder: coder)
    }
}
